package com.quanyan.travel.constants;

/**
 * Created with IntelliJ IDEA.
 * User: zyq
 * Date: 2016/5/27 0027
 * Time: 15:02
 */

public class OutdoorConstants {

    //户外首页相关缓存key
    public static final String INDEX_CACHE_KEY = "INDEX_CACHE_KEY";

    //默认分页每页大小
    public static final Integer DEFAULT_PAGE_SIZE = 5;
    public static final Integer DEFAULT_FIRST_PAGE = 1;
    public static final Integer FIRST_PAGE = 0;

    //是否
    public static final Byte DEFAULT_STATUS_BYTE_YES = 1;
    public static final Byte DEFAULT_STATUS_byte_NO = 0;

    public static final Boolean DEFAULT_STATUS_BOOLEAN_YES = true;
    public static final Boolean DEFAULT_STATUS_boolean_NO = false;


    //户外订单状态
    public static final Byte TRAVEL_ORDER_WAIT = 0;
    public static final Byte TRAVEL_ORDER_NOT_SURE = 1;
    public static final Byte TRAVEL_ORDER_SURE = 2;
    public static final Byte TRAVEL_ORDER_REFUND_WAIT = 3;
    public static final Byte TRAVEL_ORDER_REFUND = 4;
    public static final Byte TRAVEL_ORDER_REFUND_FAIL = 5;

    //户外订单支付状态
    public static final Byte TRAVEL_ORDER_PAY_WAIT = 0;
    public static final Byte TRAVEL_ORDER_PAYING = 1;
    public static final Byte TRAVEL_ORDER_PAY_FAIL = 2;
    public static final Byte TRAVEL_ORDER_PAY_SUCCESS=3;


    //户外订单状态,反馈给前段  (支付中状态,不需要给予客户端)
    public static final Byte APP_TRAVEL_ORDER_CANCEL = 0;
    public static final Byte APP_TRAVEL_ORDER_WAIT_PAY = 1;
    public static final Byte APP_TRAVEL_REFUND_APPLY = 2;   //退款申请
    public static final Byte APP_TRAVEL_ORDER_PAYED=3;
    public static final Byte APP_TRAVEL_ORDER_REFUNDING=4;
    public static final Byte APP_TRAVEL_ORDER_REFUND=5;



    /**
     *
     * 任务表示符号
     * */
    public static final String TRAVEL_JOB_ID_CLOSE_ORDER_START_NOTIFY = "TRAVEL_JOB_ID_CLOSE_ORDER_START_NOTIFY";
    public static final String TRAVEL_JOB_ID_UPDATE_ACTIVITY_START_NOTIFY = "TRAVEL_JOB_ID_UPDATE_ACTIVITY_START_NOTIFY";
    public static final String TRAVEL_JOB_ID_UPDATE_PRICE_START_NOTIFY = "TRAVEL_JOB_ID_UPDATE_PRICE_START_NOTIFY";
    public static final String TRAVEL_JOB_ID_REMIND_PAY_START_NOTIFY = "TRAVEL_JOB_ID_REMIND_PAY_START_NOTIFY";



    //最大订单数目
    public static final int TRAVEL_MAX_WAIT_PAY_ORDER_NUM=2;


    //MQ
    public static final String TRAVEL_GROUP_ORDER_PAY = "TRAVEL_GROUP_ORDER_PAY_NEW"; //.
    public static final String TRAVEL_INSTANCE_ORDER_PAY = "TRAVEL_INSTANCE_ORDER_PAY_NEW"; //.


    public static final String TRAVEL_GROUP_ORDER_REFUND = "TRAVEL_GROUP_ORDER_REFUND_NEW"; //.
    public static final String TRAVEL_INSTANCE_ORDER_REFUND = "TRAVEL_INSTANCE_ORDER_REFUND_NEW"; //.

    //户外订单的有效时间 10分钟
    public static final Integer ORDER_DEAD_LINE_TIME = 10;

    //户外订单退款时间
    public static final Integer ORDER_REFUND_LIMIT_TIME = 4;

    //户外订单定时器每次需要处理的订单数量
    public static final Integer HANDDLER_EXPIRE_ORDER = 10;

    //设置首页缓存失效时间是1 * 60 * 30秒，也就是半个小时
    public static final int INDEX_CACHE_LAST_TIME = 1 *60 * 30 ;

    //已删除
    public static final Byte IS_DELETE = 1;
    //未删除
    public static final Byte IS_NOT_DELETE = 0;

    //已删除
    public static final Boolean IS_DELETE_FALSE = false;
    //未删除
    public static final Boolean IS_NOT_DELETE_TRUE = true;

    //是否
    public static final Byte THEME_ACTIVITY_YES = 1;
    public static final Byte THEME_ACTIVITY_NO = 0;

    //活动下架状态
    public static final Byte ACTIVITY_UNDERCARRIAGE = 2;

    public static final Integer COLLECTUSER_NUM = 6;//默认收藏用户数
    public static final Integer COMMENT_NUM = 5;//默认评论数
    public static final Integer PAGE_COMMENT_NUM = 10;//每一页评论数
    public static final Integer MAX_COLLECTUSER_NUM = 50;//最大收藏用户数
    public static final Integer SIX_COLLECTUSERS = 6; //最新的六个收藏用户


    //活动详情分享链接
    public static final String ACTIVITY_SHARE_URL = "/api/travel/thymeleaf/webDetail";
    //免责申明
    public static final String ACTIVITY_ESCAPE_CLAUSE = "/api/travel/thymeleaf/escapeClause";

    //鸟蛋/鸟壳积分系统的系统ID


    //下单业务  相关ID
    public static final String TRAVEL_ORDER_CODE = "TRAVEL_ORDER_CODE";    //下单业务id
    public static final String TRAVEL_ACCESS_CODE = "TRAVEL_ACCESS_CODE";    //评价业务id



    /**
     * 户外首页场次缓存
     */
    public static final String TRAVEL_INDEX_PRODUCT_PREFIX = "TRAVEL_INDEX_PRODUCT_PREFIX_";

    /**
     * 首页是否展示
     */
    public static final Byte INDEX_SHOW_TRUE = 1;
    public static final Byte INDEX_SHOW_FALSE = 0;


    /**
     * 默认配置
     *
     * */
    public static final String DEFAULT_APP_NAME = "百灵鸟";
    public static final String DEFAULT_APP_TRAVEL_NAME = "活动消息:";


    /**
     * group-key设定
     *
     * */
    public static final String TRAVEL_MSG = "TRAVEL_MSG"; // 消息末班组
    public static final String TRAVEL_CONFIG = "TRAVEL_CONFIG"; //配置信息组

    /**
     * parameter-key设定
     *
     * */
    public static final String TRAVEL_CONFIG_HOST_DEFAULT_NAME = "TRAVEL_CONFIG_HOST_DEFAULT_NAME";  //默认用户名称配置
    public static final String TRAVEL_CONFIG_HOST_DEFAULT_MOBILE = "TRAVEL_CONFIG_HOST_DEFAULT_MOBILE";  //默认用户电话配置
    public static final String TRAVEL_CONFIG_REFUND_REASON = "TRAVEL_CONFIG_REFUND_REASON";  //默认用户退款原因配置

    /**
     * 是否推荐
     */
    public static final Byte IS_RECOMMEND = 1;
    public static final Byte IS_NOT_RECOMMEND = 0;

}
